<view class="padding flex flex-direction">
    <button bindtap="chooseImage" class="cu-btn  bg-cyan  lg" style="margin-bottom:15rpx;">
		选择图片</button>
    <view style="height:50vh;display: flex;flex-direction: column;align-items: center;">
        <image bindtap="preview" mode="aspectFit" src="{{imageurl}}" style="height:100%;"></image>
    </view>
    <text style="margin-top:15rpx;" wx:if="{{show}}">压缩后大小：{{size}}</text>
    <view wx:if="{{show}}">
        <view class="flex justify-center text-xsl">
            <text class=" cuIcon-roundcheckfill text-green"></text>
        </view>
        <view class="flex justify-center ">
            <text>压缩后的图片已经保存到相册</text>
        </view>
    </view>
</view>
<adComponent  wx:if="{{ad}}" ad="{{ad}}"/>
